package com.ruoyi.web.work.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.web.common.Result;
import com.ruoyi.web.work.domain.dto.ProcessInputDTO;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static com.ruoyi.web.common.Results.ok;

/**
 * 统计Controller
 *
 * @author gsx
 * @date 2021-02-28
 */
@RestController
@RequestMapping("/work/statistical")
public class StatisticalController {

    /**
     * 流转作业卡工序录入
     */
//    @PreAuthorize("@ss.hasPermi('work:basic:remove')")
    @Log(title = "工序录入", businessType = BusinessType.INSERT)
    @PostMapping("/processInput")
    @Transactional(rollbackFor = Exception.class)
    public Result processInput(@RequestBody ProcessInputDTO processInputDTO) {

        return ok();
    }
}
